package com.zzy.common.entity.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import static com.zzy.common.entity.db.ActorTypeDaoEntity.TableFiledConst.TABLE_NAME;

/**
 * @author zhuZhaoYang
 * @date 2021/7/15 11:19
 */
@Data
@TableName(TABLE_NAME)
public class ActorTypeDaoEntity {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField(TableFiledConst.NAME)
    private String name;


    public static class TableFiledConst {
        public static final String TABLE_NAME = "actor";
        public static final String ID = "id";
        public static final String NAME = "name";
    }
}
